package com.wjw.java.basic.operator_;

/**
 * 赋值运算符：
 * 1.基础赋值运算符 =
 * 2.复合赋值运算符 +=  -=  *=  /=  %=
 */
public class OperatorAssign {
    public static void main(String[] args) {
        int a = 0;
        a += 4;//int a = 0+4
        System.out.println(a);//4
        a -= 2;//int a = 4-2
        System.out.println(a);//2
        a *= 5;//int a = 2*5
        System.out.println(a);//10
        a /= 1;//int a = 10/1
        System.out.println(a);//10
        a %= 9;//int a = 10%9
        System.out.println(a);//1
    }
}
